<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>手写promise</title>
</head>

<script src="./promiseClass.js"></script>

<body>
    <script>

        let p2 = new Promise((reslove, reject) => {
           setTimeout(()=>{
            reslove("222")
           },1000)

        })

        p2.then().then(res => {
            console.log(res);
        })


    </script>
</body>

</html>